package com.ngmaster.socket.util;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

import java.io.IOException;

/**
 * 对http的request不做响应
 * */
public class DoNothingCallback implements Callback {

    public static final Callback DO_NOTHING_CALLBACK = new DoNothingCallback();

    @Override
    public void onFailure(Call call, IOException e) {
        e.printStackTrace();
    }

    @Override
    public void onResponse(Call call, Response response) throws IOException {
    }
}
